{layout name="layout/default" /}

<form class="layui-form" action="{:url('edit')}" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">菜单：</label>
        <div class="layui-input-block">
            <input type="radio" name="row[ismenu]" value="1" title="是" {eq name="row.ismenu" value="是" } checked="" {/eq}>
            <input type="radio" name="row[ismenu]" value="0" title="否" {eq name="row.ismenu" value="否" } checked="" {/eq}>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">父级：</label>
        <div class="layui-input-block">
            {:build_select('pid',$ruledata,$row.pid)}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">规则：</label>
        <div class="layui-input-block">
            <input type="text" name="row[name]" lay-verify="title" autocomplete="off" class="layui-input" value="{$row.name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">标题：</label>
        <div class="layui-input-block">
            <input type="text" name="row[title]" lay-verify="title" autocomplete="off" class="layui-input" value="{$row.title}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">图标：</label>
        <div class="layui-input-block">
            <input type="text" name="row[icon]" lay-verify="title" autocomplete="off" class="layui-input" value="{$row.icon}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">权重：</label>
        <div class="layui-input-block">
            <input type="text" name="row[weigh]" lay-verify="title" autocomplete="off" class="layui-input" value="{$row.weigh}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">规则条件：</label>
        <div class="layui-input-block">
            <input type="text" name="row[condition]" lay-verify="title" autocomplete="off" class="layui-input" value="{$row.condition}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <input type="text" name="row[remark]" lay-verify="title" autocomplete="off" class="layui-input" value="{$row.pid}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态：</label>
        <div class="layui-input-block">
            <input type="radio" name="row[status]" value="正常" title="正常" {eq name="row.status" value="正常" } checked="" {/eq}>
            <input type="radio" name="row[status]" value="隐藏" title="隐藏" {eq name="row.status" value="隐藏" } checked="" {/eq}>
        </div>
    </div>
    <input type="hidden" name="ids" value="{$row.id}">
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

<script>
    layui.use(['jquery', 'form', ], function() {
        form = layui.form,
            $ = layui.jquery;

        // formSelects.debug(true); //开启debug模式

    })
</script>
</body>

</html>